﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title - GoPlay</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />

    @Styles.Render("~/Content/css")
    <link href="/Content/datepicker.css" rel="stylesheet"/>
    <style type="text/css">
        body {
            padding-top: 60px;
            padding-bottom: 40px;
        }
    </style>

    <script src="http://code.jquery.com/jquery-latest.js"></script>
    @Scripts.Render("~/bundles/modernizr")
    @if (IsSectionDefined("scripts"))
    {
        @RenderSection("scripts")
    }
    <script src="~/Scripts/bootstrap.js"></script>
    <script src="~/Scripts/bootstrap-datepicker.js"></script>

</head>
<body>

    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <a class="brand" href="#">GoPlay</a>
                <div class="nav-collapse collapse">
                    @if (Request.IsAuthenticated)
                    {
                        <ul class="nav nav-pills">
                          <li><a href="/Teams">Teams</a></li>
                          <li><a href="/Contacts">Contacts</a></li>
                          <li><a href="/Shop">Shop</a></li>
                        </ul>   
                        <ul class="nav pull-right">
                            <li>@Html.ActionLink("Hello " + @Session["FullName"] + "!", "Manage", "Account")</li>
                            <li>@Html.ActionLink("Logoff", "Logoff", "Account")</li>
                        </ul>
                    }
                    else
                    {
                        <ul class="nav pull-right">
                            <li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
                            <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
                        </ul>
                    }
                </div>
                <!--/.nav-collapse -->
            </div>
        </div>
    </div>


    <div class="container">

        @RenderBody()

        <hr>

        <footer>
            <p>&copy; Stone Hands Software Inc. 2012</p>
        </footer>

    </div>
    <!-- /container -->

</body>
</html>
